package net.zjitc.springboot_mybatisplus.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("tbl_book") //实体类对应的数据表名
public class Book {
    @TableId(type = IdType.AUTO) //自动增加
    private Integer id;
//    @TableId(value = "book_type")
    private String type;
    private String name;
    private String description;
}
